<template>
  <div class="hot">
    <div class="hot-top">
      <img
        src="http://img1.qunarzz.com/piao/fusion/1711/16/bfbb9874e8f11402.png"
        alt=""
      />
      <span>本周热门榜单</span>
      <span class="hot-title">全部榜单 ></span>
    </div>
    <ul class="hot-list">
      <li class="hot-item" v-for="value in hotList" :key="value.id">
        <img :src="value.imgUrl" alt="" />
        <p>{{ value.p }}</p>
        <p>
          <span class="hot-mark">￥{{ value.mark }}</span
          >起
        </p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: ["hotList"],
  name: "Hot",
  data() {
    return {};
  },
};
</script>

<style scoped lang="stylus">
@import '~@/assets/css/common.styl';

.hot {
  margin-top: 0.2rem;
  background-color: #fff;
  font-size: 0.28rem;
}

.hot-top {
  padding: 0.2rem;
  position: relative;
}

.hot-top img {
  width: 24px;
  vertical-align: sub;
}

.hot-top span {
  color: #212121;
  font-size: 0.32rem;
}

.hot-top .hot-title {
  position: absolute;
  right: 0.2rem;
  color: #616161;
  font-size: 0.28rem;
  top: 0.3rem;
}

.hot-list {
  overflow-x: scroll;
  white-space: nowrap;
  overflow-y: hidden;
  height: 3.1rem;
}

.hot-item {
  width: 2rem;
  height: 2rem;
  padding: 0 0.2rem;
  display: inline-block;
}

.hot-item img {
  width: 100%;
  height: 100%;
}

.hot-item p {
  margin-top: 0.1rem;
  text-align: center;
  tetxtOverflow();
}

.hot-item p .hot-mark {
  font-size: 0.32rem;
  color: #ff8300;
}
</style>
